import request from '@/utils/request'

export function homeBedApply(query) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/list',
    method: 'get',
    params: query
  })
}

export function homeBedApplyReviewList(query) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/get-review-list',
    method: 'get',
    params: query
  })
}

export function homeBedApplyUpdateReviewInfo(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/update-review-info',
    method: 'put',
    data: data
  })
}

export function genApplyCode() {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/genApplyCode',
    method: 'get',
  })
}

export function listAll() {
  return request({
    url: '/elder-archive/ea/listAll',
    method: 'get',
  })
}
export function homeBedApplySave(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/save',
    method: 'post',
    data: data
  })
}
export function homeBedApplyUpdata(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/update',
    method: 'put',
    data: data
  })
}

export function homeBedItemDel(jobId) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/delete',
    method: 'delete',
    data:jobId
  })
}

export function homeBedApplyInfo(id) {
  return request({
    url: '/pk-retirement/home-bed-sign/home-bed-apply/info/'+id,
    method: 'get',

  })
}
export function getEvaluateAgencySelectOptions() {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/get-evaluate-agency-select-options',
    method: 'get',
  })
}

export function getEvaluateTemplateSelectOptions() {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/get-evaluate-template-select-options',
    method: 'get',
  })
}


export function getEvaluateAgencyPersonnelSelectOptions(id) {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/get-evaluate-agency-personnel-select-options/'+id,
    method: 'get',
  })
}

export function abilityEvaluate(query) {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/list',
    method: 'get',
    params: query
  })
}


export function allocateEvaluation(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/allocate-evaluation',
    method: 'put',
    data: data
  })
}

export function getEvaluationReport(id) {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/get-evaluation-report/'+id,
    method: 'get',
  })
}


export function getEvaluationPersonnel(id) {
  return request({
    url: '/pk-retirement/home-bed-sign/ability-evaluate/get-evaluation-personnel/'+id,
    method: 'get',
  })
}


export function contractSign(query) {
  return request({
    url: '/pk-retirement/home-bed-sign/contract-sign/list',
    method: 'get',
    params: query
  })
}

export function contractSignInfo(id) {
  return request({
    url: '/pk-retirement/home-bed-sign/contract-sign/info/'+id,
    method: 'get',
  })
}


export function getContractTemplateSelectOptions() {
  return request({
    url: '/pk-retirement/base-setting/contract-template/get-contract-template-select-options',
    method: 'get',
  })
}

export function genContractCode() {
  return request({
    url: '/pk-retirement/home-bed-sign/contract-sign/gen-contract-code',
    method: 'get',
  })
}


export function contractSignSave(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/contract-sign/save',
    method: 'post',
    data: data
  })
}

export function contractSignUpdate(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/contract-sign/update',
    method: 'post',
    data: data
  })
}

export function servicePlanSave(id) {
  return request({
    url: '/pk-retirement/home-bed-sign/service-plan/info/'+id,
    method: 'get',
  })
}


export function servicePlan(query) {
  return request({
    url: '/pk-retirement/home-bed-sign/service-plan/list',
    method: 'get',
    params: query
  })
}

export function getServiceItemSelectOptions() {
  return request({
    url: '/pk-retirement/base-setting/service-item/get-service-item-select-options',
    method: 'get',
  })
}

export function servicePlanDataSave(data) {
  return request({
    url: '/pk-retirement/home-bed-sign/service-plan/save',
    method: 'post',
    data: data
  })
}
